<template>
    <div>
        <div class="m-form-fields-wrap">
            <div class="m-form-fields">
                <van-field
                        clearable
                        v-model="form.CUS_ID"
                        label="客户号"
                        placeholder="请输入客户号"
                />
                <van-field
                        clearable
                        v-model="form.CUS_NAME"
                        label="客户名"
                        placeholder="请输入客户名"
                />
                <van-field
                        clearable
                        v-model="form.CERT_CODE"
                        label="证据号"
                        placeholder="请输入证据号"
                />
                <van-field
                        clearable
                        v-model="form.PHONE"
                        label="电话号"
                        placeholder="请输入电话号"
                />
                <van-field
                        clearable
                        v-model="form.CONTACT_NAME"
                        label="联系人"
                        placeholder="请输入联系人"
                />
                <van-field
                        clearable
                        v-model="form.LOAN_AMOUNT"
                        label="贷款金额"
                        placeholder="请输入贷款金额"
                />
                <van-field
                        clearable
                        v-model="form.UNPD_PRIN_BAL"
                        label="拖欠本金"
                        placeholder="请输入拖欠本金"
                />
                <van-field label="负责客户">
                    <template #input>
                        <van-checkbox
                                v-model="form.own" shape="square" icon-size="14px">显示自己负责的客户</van-checkbox>
                    </template>
                </van-field>
            </div>
        </div>

        <m_titleSearchFormBtnGroup
                :form="form"
                v-on="$listeners"
        ></m_titleSearchFormBtnGroup>

    </div>
</template>

<script>
    import m_titleSearchFormBtnGroup from "../../components/m_titleSearchFormBtnGroup";

    export default {
        name: "search",
        data: function(){
            return {
                form: {
                    CUS_ID: "",
                    CUS_NAME: "",
                    CERT_CODE: "",
                    PHONE:"",
                    CONTACT_NAME:"",
                    LOAN_AMOUNT:"",
                    UNPD_PRIN_BAL:"",
                    own: ''
                }
            }
        },
        components: {
            m_titleSearchFormBtnGroup
        }
    }
</script>
